package com.boom.web.core.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.config.annotation.EnableWebSocket;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

/**
 * 网络套接字配置
 * 通过这个配置才会去扫描后面的关于 websocket 的注解
 * @author yzw
 * @date 2021-06-10
 */
@Configuration
@EnableWebSocket
public class WebSocketConfig {

	@Bean
	public ServerEndpointExporter serverEndpoint() {
		return new ServerEndpointExporter();
	}
}
